package com.chaber.containers.views;

import javafx.scene.control.TabPane;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;

public class MainView extends TabPane {

	@Autowired
	private ProductListView productListView;
	
	@Autowired
	private ProdCatListView categoryListView;
	
	public MainView() {
		this.setHeight(600);
		this.setWidth(600);
	}
	
	@PostConstruct
	public void init() {
		this.getTabs().addAll(this.productListView, this.categoryListView);
		
		this.setVisible(true);
	}
}
